<template>
  <div>
    <button @click="fetchData">fetchData</button>
    <p>loading {{ loading }}</p>
    <p>error {{ error }}</p>
    <p>data {{ data }}</p>
  </div>
</template>

<script setup lang="ts">
import useRequest from "@/hooks/useRequest";
const { data, loading, error, fetchData } = useRequest("https://lekuzhima.club/interview/album/0");
</script>

<style lang="scss" scoped></style>
